﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using NetDon.OA.Data.CollectionClasses;
using NetDon.OA.Data.EntityClasses;
using NetDon.OA.Data.HelperClasses;
using NetDon.Utilities;

namespace NetDon.OA.Business
{ 
    [DataObject]
    public class MiscDataSource
    {

        /// <summary>
        /// Retrieves all the administrator roles.
        /// </summary>
        /// <returns></returns>
        [DataObjectMethod(DataObjectMethodType.Select)]
        public IEnumerable<RoleEntity> RetrieveAdministratorRoles()
        {
            var collection = new RoleCollection();
            collection.GetMulti(null);
            return collection;
        }


        [DataObjectMethod(DataObjectMethodType.Select)]
        public IEnumerable<PostEntity> RetrivePositions()
        {
            var collection = new PostCollection();
            collection.GetMulti(null);
            return collection;
        }

        [DataObjectMethod(DataObjectMethodType.Select)]
        public IEnumerable<CustomerInfoEntity> RetrieveCustomers(string areaId)
        {
            var collection = new CustomerInfoCollection();
            collection.GetMulti(null);

            return collection;
        }
            [DataObjectMethod(DataObjectMethodType.Select)]
        public IEnumerable<CompanyEntity> RetrieveCompanies()
        {
            var collection = new CompanyCollection();
            collection.GetMulti(null);

            return collection;
        }

        

        [DataObjectMethod(DataObjectMethodType.Select)]
        public IEnumerable<RouteEntity> RetrieveRoutes(string areaId)
        {
            var collection = new RouteCollection();
            collection.GetMulti(null);

            return collection;
        }
          [DataObjectMethod(DataObjectMethodType.Select)]
        public IEnumerable<VehicleModelEntity> RetrieveVechicleModel(string areaId)
        {
            var collection = new VehicleModelCollection();
            collection.GetMulti(null);

            return collection;
        }
        
    }
}
